<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="four.book.entity.User"%>
<%@page import="java.util.List"%>
<%@ include file="header.jspf"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<style type="text/css">
table {
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	color: brown;
	font-size: 15px;
}

table td {
	text-align: center;
	padding-top: 20px;
}

.showAnniu {
	color: orange;
	background: white;
	border: none;
}
</style>

<div id="main">
	<h1>所有书籍</h1>
	<a href="${pageContext.request.contextPath}/Manger/toManger.do">&nbsp;&nbsp;&nbsp;&nbsp;<input
		class="showAnniu" type="button" value="返回" /></a>
	<div class="content">

		<table border="0">
			<tr>
				<td>书籍图片</td>
				<td>书籍ISBN</td>
				<td>书籍名称</td>
				<td>书籍类别</td>
				<td>书籍价格</td>
			    <td>书籍数量</td> 
			    <td>删除/更新</td>
			</tr>
			<c:forEach var="book" items="${sessionScope.BOOKS}">
				<tr>
					<td><img src="${pageContext.request.contextPath}/upload/${book.bookPhoto}" width="50px" height="50px"/></td>
					<td>${book.bookIsbn}</td>
					<td>${book.bookName}</td>
					<td>${book.bookCategory}</td>
					<td>${book["bookPrice"]}</td>
					<td>${book["bookNumber"]}</td>	 
 					<td>
 						<input  class="showAnniu" id="shanchuBook" type="button" value="删除" onclick="deleteBook(${book.bookIsbn})"/>
 					    <input  class="showAnniu" id="upBook" type="button" value="更新" onclick="updateBook(${book.bookIsbn})"/>
 					</td>
				</tr>
			</c:forEach>
		</table>
	</div>
</div>
<%@ include file="footer.jspf"%>
